package com.xhj.mybatis.scripting.xmltags.ognl.other;

import java.util.List;

/**
 * User
 *
 * @author XJks
 * @description 普通 Pojo 类。
 */
public class User {
    private String username;
    private Integer age;
    private Address address;
    private List<Integer> tags;
    private String secret = "TOP-SECRET"; // 无 getter，用于测试私有字段访问

    public User() {
    }

    public User(String username, Integer age) {
        this.username = username;
        this.age = age;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public List<Integer> getTags() {
        return tags;
    }

    public void setTags(List<Integer> tags) {
        this.tags = tags;
    }
}